package ar.com.globallogic.promomr.domain;

public class GenderContentFilter extends ContentFilter {

	private Gender gender;
	
	public GenderContentFilter(Gender gender){
		this.gender = gender;
	}
	
	@Override
	public boolean passes(User user) {
		if(this.gender.equals(user.getGender())){
			return this.getNext().passes(user);
		}
		return false;
	}
}
